<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
		<meta name="description" content="">
		<meta name="author" content="">
		<title>登录页</title>
		<!-- Bootstrap core CSS -->
		<link href="asserts/css/bootstrap.min.css" rel="stylesheet" th:href="@{/webjars/bootstrap/4.0.0/css/bootstrap.css}" >
		<!-- Custom styles for this template -->
		<link href="asserts/css/signin.css" rel="stylesheet" th:href="@{/asserts/css/signin.css}" >

		<script type="text/javascript" src="asserts/js/jquery-3.2.1.slim.min.js" th:src="@{/webjars/jquery/3.6.0/jquery.js}"></script>
		<script type="text/javascript" src="asserts/js/popper.min.js" th:src="@{/webjars/popper.js/1.14.1/popper.js}"></script>
		<script  src="asserts/js/bootstrap.min.css" type="text/javascript" th:src="@{/webjars/bootstrap/4.0.0/css/bootstrap.css}"></script>

	</head>

	<body class="text-center">
		<form class="form-signin" action="dashboard.html" method="post" th:action="@{/user/login}">
			<img class="mb-4" src="asserts/img/a.svg"  th:src="@{/asserts/img/a.svg}" alt="" width="172" height="172">
			<p id="msg" style="color: red" th:text="${login_msg}" th:if="${not #strings.isEmpty(login_msg)}"></p>
			<label class="sr-only">用户</label>
			<input type="text" class="form-control" name="userName" placeholder="用户" required="" autofocus="" id="x">
			<label class="sr-only">密码</label>
			<input type="password" class="form-control" name="password" placeholder="密码" required="" id="xx">
			<div class="checkbox mb-3">
			</div>
			<button class="btn btn-lg btn-primary btn-block" type="submit" id="den">登&nbsp;&nbsp;&nbsp;录</button>
		</form>
	</body>
<script>

	// let a = $("#den");
	// a.on("click",function (){
	// 	let s = $("#x").val()
	// 	let ss = $("#xx").val()
	// 	location.href = `/user/login?userName=${s}&password=${ss}`
	//
	// })
</script>
</html>